package Test3;

class A {

    public static void main(String[] args) {
        Main p=new Main();
        System.out.println(p.a);
        System.out.println(p.b);
        System.out.println(p.c);
      //  System.out.println(p.d);
    }
}
public class Main {
    public int a=10;
    protected int b=20;
    int c=30;//默认default
    private int d=40;
}
